package com.qyer.lxp.model.availability.normal;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * 验价类
 * Created by jiangping on 16/5/10.
 */

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Available implements Serializable {

    private static final long serialVersionUID = 463773875824183948L;

    /**
     * 是否可售
     */
    private boolean available;

    /**
     * 备注
     */
    private String remark;

    /**
     * 总价
     */
    @XmlElement(name = "total-net-price")
    private int totalNetPrice;

    /**
     * 每个规格或者附加选项的单价
     */
    @XmlElementWrapper(name="prices")
    @XmlElement(name = "unit-price")
    private List<UnitPrice> unitPrice;

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getTotalNetPrice() {
        return totalNetPrice;
    }

    public void setTotalNetPrice(int totalNetPrice) {
        this.totalNetPrice = totalNetPrice;
    }

    public List<UnitPrice> getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(List<UnitPrice> unitPrice) {
        this.unitPrice = unitPrice;
    }

    @Override
    public String toString() {
        return "Available{" +
                "available=" + available +
                ", remark='" + remark + '\'' +
                ", totalNetPrice=" + totalNetPrice +
                ", unitPrice=" + unitPrice +
                '}';
    }
}
